;------------------------------------------------------------------------------------------------
[wpn_m16]:identity_immunities,weapon_probability,default_weapon_params,wpn_m16_sounds
GroupControlSection                      = spawn_group
$npc                                     = on
$prefetch                                = 8
$spawn                                   = "weapons\lr-300"
scheduled                                = off
cform                                    = skeleton
parent_section                           = wpn_m16

class                                    = WP_AK74
slot                                     = 2
animation_slot                           = 2
ef_main_weapon_type                      = 2
ef_weapon_type                           = 8
hand_dependence                          = 1
single_handed                            = 0

default_to_ruck                          = false
sprint_allowed                           = true

inv_grid_height                          = 2
inv_grid_width                           = 5
inv_grid_x                               = 25
inv_grid_y                               = 54
inv_name                                 = st_wpn_m16
inv_name_short                           = st_wpn_m16
description                              = st_wpn_m16_descr

kind                                     = w_rifle
inv_weight                               = 3.09
cost                                     = 35690
repair_type                              = rifle_5
weapon_class                             = assault_rifle

hud                                      = wpn_m16_hud
visual                                   = dynamics\weapons\wpn_m16\wpn_m16.ogf
position                                 = -0.026, -0.130, 0.0
orientation                              = 0.0, 0.0, 0.0
fire_point                               = 0.0, 0.199, 0.575
fire_point2                              = 0.0, 0.199, 0.575
strap_bone0                              = bip01_spine2
strap_bone1                              = bip01_spine1
strap_position                           = -0.15, -0.37, 0.2
strap_orientation                        = -10, -5, 10
ph_mass                                  = 3

flame_particles                          = weapons\generic_weapon05
smoke_particles                          = weapons\generic_shoot_00
grenade_flame_particles                  = weapons\generic_weapon01

shell_point             				 = 0.120000, 0.000000, 0.070000
shell_dir               				 = 0.0, 0.0, 0.4
shell_particles         				 = weapons\556x45

light_disabled                           = false
light_color                              = 0.6, 0.5, 0.3
light_range                              = 5
light_time                               = 0.2
light_var_color                          = 0.05
light_var_range                          = 0.1

upgrades                                 = up_gr_firstab_m4, up_gr_seconab_m4, up_gr_thirdab_m4, up_gr_fourtab_m4, up_gr_fifthab_m4
installed_upgrades                       =
upgrade_scheme                           = upgrade_scheme_lr300
upgr_icon_x                              = 600
upgr_icon_y                              = 400
upgr_icon_width                          = 300
upgr_icon_height                         = 100

fire_modes                               = 1, 3, -1
ammo_class                               = ammo_5.56x45_fmj, ammo_5.56x45_fmj_bad, ammo_5.56x45_fmj_verybad, ammo_5.56x45_ss190, ammo_5.56x45_ss190_bad, ammo_5.56x45_ss190_verybad, ammo_5.56x45_ap, ammo_5.56x45_ap_bad, ammo_5.56x45_ap_verybad
ammo_elapsed                             = 30
ammo_mag_size                            = 30
startup_ammo                             = 90

scopes                                   = ac10632, acog, eot
scope_status                             = 0
scope_zoom_factor                        = 0

silencer_name                            = wpn_sil_nato
silencer_status                          = 2
silencer_x                               = 220
silencer_y                               = 16
silencer_light_color                     = 0.6, 0.5, 0.3
silencer_light_range                     = 0.01
silencer_light_time                      = 0.2
silencer_light_var_color                 = 0.05
silencer_light_var_range                 = 0.5
silencer_smoke_particles                 = weapons\generic_shoot_00

grenade_class                            = ammo_m209, ammo_m209_bad, ammo_m209_verybad
grenade_launcher_name                    = wpn_addon_grenade_launcher_m203
grenade_launcher_status                  = 2
grenade_launcher_x                       = 120
grenade_launcher_y                       = 31
grenade_vel                              = 76
launch_speed                             = 0

hit_impulse                              = 25
hit_power                                = 0.5, 0.5, 0.5, 0.5
hit_type                                 = fire_wound
fire_distance                            = 1000
bullet_speed                             = 910
rpm                                      = 670
rpm_empty_click                          = 200

use_aim_bullet                           = false
time_to_aim                              = 0.0 ;  2.0
zoom_dof                                 = 0.5, 1.0, 180
zoom_enabled                             = true
zoom_rotate_time                         = 0.25
reload_dof                               = 0.0, 0.5, 5, 2
control_inertion_factor = 1.0f
crosshair_inertion                       = 5.3
fire_dispersion_base                     = 0.21
fire_dispersion_condition_factor         = 0.001

misfire_probability                      = 0.005
misfire_start_condition                  = 0.7 ;  0.84
misfire_start_prob                       = 0.007
misfire_end_condition                    = 0.12
misfire_end_prob                         = 0.11

condition_queue_shot_dec                 = 0.0008
condition_shot_dec                       = 0.0008

cam_return                               = 0
cam_relax_speed                          = 10
cam_dispersion                           = 0.506
cam_dispersion_frac                      = 0.7
cam_dispersion_inc                       = 0.0625
cam_max_angle                            = 50.0
cam_max_angle_horz                       = 50.0
cam_step_angle_horz                      = 1.36
zoom_cam_relax_speed                     = 10
zoom_cam_dispersion                      = 0.356
zoom_cam_dispersion_frac                 = 1.0
zoom_cam_dispersion_inc                  = 0.05
zoom_cam_max_angle                       = 50.0
zoom_cam_max_angle_horz                  = 50.0
zoom_cam_step_angle_horz                 = 1.24

PDM_disp_accel_factor                    = 2.75
PDM_disp_base                            = 1.2
PDM_disp_crouch                          = 1.0
PDM_disp_crouch_no_acc                   = 1.0
PDM_disp_vel_factor                      = 2.75

cam_relax_speed_ai                       = 360
zoom_cam_relax_speed_ai                  = 360
holder_fov_modifier                      = 1.0
holder_range_modifier                    = 1.0
min_radius                               = 0
max_radius                               = 500
hit_probability_gd_novice                = 1.00
hit_probability_gd_stalker               = 1.00
hit_probability_gd_veteran               = 1.00
hit_probability_gd_master                = 1.00

kill_msg_x                               = 175
kill_msg_y                               = 0
kill_msg_width                           = 82
kill_msg_height                          = 28


[wpn_m16_hud]:hud_base
item_visual                              = anomaly_weapons\wpn_m16\wpn_m16_hud.ogf
attach_place_idx                         = 0
zoom_hide_crosshair                      = true   

item_position                            = 0, 0, 0
item_orientation                         = 0, 0, 0

hands_position                           = -0.05, -0.18, 0.12
hands_position_16x9                      = -0.05, -0.18, 0.12
hands_orientation                        = 0, 1, 0
hands_orientation_16x9                   = 0, 1, 0

aim_hud_offset_pos                       = -0.09873, 0.054, -0.27
aim_hud_offset_pos_16x9                  = -0.09873, 0.054, -0.27
aim_hud_offset_rot                       = 0.00905, -0.00085, -0.0069
aim_hud_offset_rot_16x9                  = 0.00905, -0.00085, -0.0069

gl_hud_offset_pos                        = -0.09658, -0.1144, -0.27
gl_hud_offset_pos_16x9                   = -0.09658, -0.1144, -0.27
gl_hud_offset_rot                        = -0.185, -0.0047, -0.0069
gl_hud_offset_rot_16x9                   = -0.185, -0.0047, -0.0069

lean_hud_offset_pos                      = 0, 0, 0
lean_hud_offset_rot                      = 0, 0, 0

anm_hide                                 = m16_holster
anm_hide_g                               = m16_holster_g, idle_g
anm_hide_w_gl                            = m16_holster_w_gl
anm_idle                                 = m16_idle
anm_idle_aim                             = m16_aim
anm_idle_aim_moving                      = m16_move, idle, 0.75
anm_idle_aim_moving_crouch               = m16_move, idle, 0.7
anm_idle_g                               = m16_idle_g, idle_g
anm_idle_g_aim                           = m16_aim_g, idle_g
anm_idle_moving                          = m16_move
anm_idle_moving_crouch_g_aim             = m16_move_g, idle_g, 0.7
anm_idle_moving_crouch_w_gl_aim          = m16_move_w_gl, idle, 0.7
anm_idle_moving_g                        = m16_move_g, idle_g
anm_idle_moving_g_aim                    = m16_move_g, idle_g, 0.75
anm_idle_moving_w_gl                     = m16_move_w_gl
anm_idle_moving_w_gl_aim                 = m16_move_w_gl, idle, 0.75
anm_idle_sprint                          = m16_sprint
anm_idle_sprint_g                        = m16_sprint_g, idle_g
anm_idle_sprint_w_gl                     = m16_sprint_w_gl
anm_idle_w_gl                            = m16_idle_w_gl
anm_idle_w_gl_aim                        = m16_aim_w_gl
anm_reload                               = m16_reload, reload
anm_reload_g                             = m16_reload_g, reload_g
anm_reload_w_gl                          = m16_reload_w_gl, reload
anm_shots                                = m16_shoot, shoot
anm_shots_g                              = m16_shoot_g, shoot_g
anm_shots_w_gl                           = m16_shoot_w_gl, shoot
anm_show                                 = m16_draw
anm_show_g                               = m16_draw_g, idle_g
anm_show_w_gl                            = m16_draw_w_gl
anm_switch                               = m16_switch_off, switch_off
anm_switch_g                             = m16_switch_on, switch_on

shell_bone                               = gilza
shell_dir                                = 0, 1, 0
shell_point                              = 0, 0, 0

fire_bone                                = muzzle
fire_bone2                               = muzzle_gl
fire_point                               = 0, 0, 0
fire_point2                              = 0, 0, 0

freelook_z_offset_mul					 = 0.1

;------------------------------------------------------------------------------------------------
[wpn_m16_ac10632]:wpn_m16
1icon_layer                              = ac10632
1icon_layer_x                            = 75
1icon_layer_y                            = -7

inv_weight                               = 3.2

hud                                      = wpn_m16_ac10632_hud
visual                                   = dynamics\weapons\wpn_m16\wpn_m16_ac10632.ogf


[wpn_m16_ac10632_hud]:wpn_m16_hud
item_visual                              = anomaly_weapons\wpn_m16\wpn_m16_ac10632_hud.ogf

aim_hud_offset_pos                       = -0.09873,0.04495,-0.3
aim_hud_offset_pos_16x9                  = -0.09873,0.04495,-0.3
aim_hud_offset_rot                       = 0, -0.0008, -0.0125
aim_hud_offset_rot_16x9                  = 0, -0.0008, -0.0125

;------------------------------------------------------------------------------------------------
[wpn_m16_acog]:wpn_m16
1icon_layer                              = acog
1icon_layer_x                            = 70
1icon_layer_y                            = -4

inv_weight                               = 3.49

hud                                      = wpn_m16_acog_hud
visual                                   = dynamics\weapons\wpn_m16\wpn_m16_acog.ogf

scope_status                             = 0
scope_zoom_factor                        = 20

zoom_rotate_time                         = 0.25


[wpn_m16_acog_hud]:wpn_m16_hud,hud_low_interia
item_visual                              = anomaly_weapons\wpn_m16\wpn_m16_acog_hud.ogf

aim_hud_offset_pos                       = -0.098649, 0.035305, -0.28
aim_hud_offset_pos_16x9                  = -0.098649, 0.035305, -0.28
aim_hud_offset_rot                       = 0.006, -0.00075, -0.0125
aim_hud_offset_rot_16x9                  = 0.006, -0.00075, -0.0125

;------------------------------------------------------------------------------------------------
[wpn_m16_eot]:wpn_m16
1icon_layer                              = eot
1icon_layer_x                            = 72
1icon_layer_y                            = -2

inv_weight                               = 3.4

hud                                      = wpn_m16_eot_hud
visual                                   = dynamics\weapons\wpn_m16\wpn_m16_eot.ogf


[wpn_m16_eot_hud]:wpn_m16_hud
item_visual                              = anomaly_weapons\wpn_m16\wpn_m16_eot_hud.ogf

aim_hud_offset_pos                       = -0.0984,0.0544,-0.3
aim_hud_offset_pos_16x9                  = -0.0984,0.0544,-0.3
aim_hud_offset_rot                       = 0.00905, -0.00075, -0.0125
aim_hud_offset_rot_16x9                  = 0.00905, -0.00075, -0.0125

;------------------------------------------------------------------------------------------------
[wpn_m16a2]:wpn_m16
parent_section                           = wpn_m16a2

inv_grid_x                               = 25
inv_grid_y                               = 58
inv_name                                 = st_wpn_m16a2
inv_name_short                           = st_wpn_m16a2
description                              = st_wpn_m16a2_descr

inv_weight                               = 3.51
cost                                     = 35880

hud                                      = wpn_m16a2_hud
visual                                   = dynamics\weapons\wpn_m16\wpn_m16a2.ogf

scopes                                   = none
scope_zoom_factor                        = 0

silencer_x                               = 220
silencer_y                               = 15

grenade_launcher_x                       = 114
grenade_launcher_y                       = 28
grenade_vel                              = 76

rpm                                      = 700
rpm_empty_click                          = 200

use_aim_bullet                           = false
time_to_aim                              = 0.0 ;  2.0
zoom_enabled                             = true
zoom_rotate_time                         = 0.25
control_inertion_factor = 1.0f
crosshair_inertion                       = 5.8
fire_dispersion_base                     = 0.39

misfire_probability                      = 0.005
misfire_start_condition                  = 0.7 ;  0.9
misfire_start_prob                       = 0.007
misfire_end_condition                    = 0.1
misfire_end_prob                         = 0.11

condition_queue_shot_dec                 = 0.0009
condition_shot_dec                       = 0.0009


[wpn_m16a2_hud]:wpn_m16_hud
item_visual                              = anomaly_weapons\wpn_m16\wpn_m16a2_hud.ogf

hands_position                           = -0.06, -0.18, 0.15
hands_position_16x9                      = -0.06, -0.18, 0.15
hands_orientation                        = 0, 1, 0
hands_orientation_16x9                   = 0, 1, 0

aim_hud_offset_pos                       = -0.08762, 0.0557, -0.3
aim_hud_offset_pos_16x9                  = -0.08762, 0.0557, -0.3
aim_hud_offset_rot                       = 0.0184, -0.00065, -0.0075
aim_hud_offset_rot_16x9                  = 0.0184, -0.00065, -0.0075

gl_hud_offset_pos                        = -0.0903, -0.057, -0.3
gl_hud_offset_pos_16x9                   = -0.0903, -0.057, -0.3
gl_hud_offset_rot                        = -0.103, 0.001, -0.011
gl_hud_offset_rot_16x9                   = -0.103, 0.001, -0.011

